package com.qf;

import com.qf.mapper.ProjectMapper;
import com.qf.model.Project;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
    public class Demo {

    @Autowired
    private ProjectMapper mapper;
    @Test
    public void selectAll(){
        List<Project> all = mapper.findAll();
        for (Project project : all) {
            System.out.println(project);
        }

    }
    @Test
    public void test(){
        List<Project> list = mapper.findPage(0, 10, "大");
        System.out.println(list);
    }


}
